﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Zhao.Models.Entity
{
    /// <summary>
    /// 球馆申请表（入驻审核流程）
    ///</summary>
    [SugarTable("VenueApplications")]
    public class VenueApplications
    {

        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "ApplicationID", IsPrimaryKey = true, IsIdentity = true)]
        public int ApplicationID { get; set; }

        /// <summary>
        /// 备  注:申请球馆名称
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "VenueName")]
        public string VenueName { get; set; } = null!;

        /// <summary>
        /// 备  注:球馆详细地址
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Address")]
        public string Address { get; set; } = null!;

        /// <summary>
        /// 备  注:营业执照图片
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Images")]
        public string Images { get; set; } = null!;

        /// <summary>
        /// 备  注:联系电话（用于平台联系）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "ContactPhone")]
        public string ContactPhone { get; set; } = null!;

        /// <summary>
        /// 备  注:球馆介绍
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Description")]
        public string? Description { get; set; }

        /// <summary>
        /// 备  注:审核状态：1-待审核，3-待开通账号，5-已完成，7-驳回审核，9-重新审核
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Status")]
        public short Status { get; set; }

        /// <summary>
        /// 备  注:审核意见（平台管理员填写）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "ApprovalOpinion")]
        public string? ApprovalOpinion { get; set; }

        /// <summary>
        /// 备  注:申请人ID（关联Users表）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "CreatedByUserID")]
        public int CreatedByUserID { get; set; }

        /// <summary>
        /// 备  注:申请提交时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "CreatedAt")]
        public DateTime? CreatedAt { get; set; }

        /// <summary>
        /// 备  注:最后状态更新时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "UpdatedAt")]
        public DateTime? UpdatedAt { get; set; }

        /// <summary>
        /// 审核人员（关联admin表）
        /// </summary>
        [SugarColumn(ColumnName = "Review")]
        public int Review {  get; set; }
        /// <summary>
        /// 球馆负责人名称
        /// </summary>
        [SugarColumn(ColumnName = "ManagerName")]
        public string ManagerName { get; set; }
        /// <summary>
        /// 如果审核通过要存储该球馆的id
        /// </summary>
        [SugarColumn(ColumnName = "VenunId")]
        public Guid? VenunId { get; set; }
        /// <summary>
        /// 省
        /// </summary>
        [SugarColumn(ColumnName = "Province")]
        public int Province { get; set; }
        /// <summary>
        /// 省
        /// </summary>
        [SugarColumn(ColumnName = "City")]
        public int City { get; set; }
        /// <summary>
        /// 区
        /// </summary>
        [SugarColumn(ColumnName = "Zone")]
        public int Zone { get; set; }
        /// <summary>
        /// 球馆营业执照
        /// </summary>
        [SugarColumn(ColumnName = "License")]
        public string License { get; set; }
    }

}